<?
$collection=ORM::factory('collection',$content->var1);

echo '<div class="liveonstage">';
echo '<div class="head">';
echo '<h1>Kommt bald...</h1>';

$now=date("Y/m/d");

foreach($collection->where(array('date >='=>$now))->orderby('date', 'desc')->content as $content){
	$subview=new View('contentmodule/liveonstage_single');
	$subview->content=$content;
	echo $subview;
}

echo '</div>';

echo '<div class="body">';
echo '<h1>Schon vorbei</h1>';




$collection->reload();
foreach($collection->where(array('date <'=>$now))->orderby('date','desc')->content as $content){
	$subview=new View('contentmodule/liveonstage_single');
	$subview->content=$content;
	echo $subview;
}
echo '</div>';
echo '</div>';



?>